<ion-view view-title="咨询详情">
    <div class="bar bar-subheader bar-stable">
        <h2 class="title">{{consult.title}}</h2>
    </div>
    <ion-nav-buttons side="left">
        <a class="button button-icon ion-arrow-left-c" href="#/tabs/consult/0"></a>
    </ion-nav-buttons>
    <ion-content class="padding has-header has-subheader">
        <ion-refresher pulling-text="下拉刷新" pulling-icon="ion-loading-c" refreshing-text="刷新成功"
                       refreshing-icon="ion-loading-c" on-refresh="loadList(true)">
        </ion-refresher>

        <div class="item item-text-wrap">
            <!--<div class="item item-thumbnail-right item-text-wrap">-->
            <!--<img src={{consult.author_pic}}>-->
            <p>{{consult.title}}</p>
            <br />

            <p >发布时间：{{consult.time}}</p>
            
        </div>
        <hr/>

        <div class="list">
            <div ng-repeat="item in comment | orderObjectBy:'time':'cid':'true'"
                 class="item item-thumbnail-left item-text-wrap">
                <img ng-src="{{ item.author_pic }}">

                <h2>{{ item.body }}</h2>
                <h4>{{ item.author }}</h4>
                <h4>{{ item.time }}</h4>
            </div>
<br />
            <div ng-if="listEnd" class="text-center">
                已显示全部回答
            </div>
        </div>
        <br />
        <br />
        <br />
        <ion-infinite-scroll ng-if="!listEnd" on-infinite="loadList(false)" distance="1%"></ion-infinite-scroll>
    </ion-content>

    <div class="bar bar-footer has-tabs">
        <custom-comment node="consult" text="回答问题" comment="comment"></custom-comment>
    </div>
</ion-view>
